Use 'sign' instead
Returns the sign of this decimal: -1 if negative, 0 if zero, and 1 if positive.
-1
0
1
It holds that for all x, x == x.sign() * x.abs().
x
x == x.sign() * x.abs()
0.9.1